package com.qust.EnDecryption.zookeeper;

import lombok.Data;

@Data
public class ZkNode {
    private int weight;
    private int currentWeight; // 权重和current
    private String address;

    public ZkNode(String address, int weight) {
        this.address = address;
        this.weight = weight;
        this.currentWeight = 0;
    }
}